import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/sms/` + url, ...arg)
export default {
	pageList(data) {
		return request('pageList', data, 'post')
	},
	pageDetail(data) {
		return request('pageDetail', data, 'post')
	},
	exportDetail(data) {
		return request('export', data, 'post', {
			responseType: 'blob'
		})
	},
	importExcel(data) {
		return request('importExcel', data, 'post')
	},
	testSend(batchNumber) {
		return request('testSend/' + batchNumber, null, 'get')
	},
	startSend(batchNumber) {
		return request('startSend/' + batchNumber, '', 'get')
	},
	statisData(batchNumber) {
		return request('smsStatistic/' + batchNumber, '', 'get')
	}
}
